package com.lingdian.demo.databind;

import com.fasterxml.jackson.annotation.JsonView;

import java.util.Date;

/**
 * Created by Administrator on 2017/7/23.
 */
public class Dog {

    public interface WithoutAge{};
    private String name;
    private String address;
    private  int age;
    private  String type;
    private Date birth;

    @JsonView(WithoutAge.class)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @JsonView(WithoutAge.class)
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
    @JsonView(WithoutAge.class)
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    @JsonView(WithoutAge.class)
    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }
}
